//
//  DoctorModel.m
//  QuickCure
//
//  Created by Ruihaha on 16/9/13.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import "DoctorModel.h"

@implementation DoctorModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}

-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self=[super init]) {
        
        [self setValuesForKeysWithDictionary:dict];
    }

    return self;
}

/*
 @property(copy,nonatomic)NSString* doctor_portrait;
 @property(copy,nonatomic)NSString* doctor_name;
 @property(copy,nonatomic)NSString* doctor_title_name;
 @property(copy,nonatomic)NSString* doctor_hospital_name;
 @property(strong,nonatomic)NSNumber* flower;
 @property(strong,nonatomic)NSNumber* operation_count;
 @property(strong,nonatomic)NSNumber* banner;
 @property(copy,nonatomic)NSString* accuracy;
 @property(nonatomic,assign)BOOL selected;

 */
-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:_doctor_name forKey:@"doctor_portrait"];
    [aCoder encodeObject:_doctor_name forKey:@"doctor_name"];
    [aCoder encodeObject:_doctor_name forKey:@"doctor_title_name"];
    [aCoder encodeObject:_doctor_name forKey:@"doctor_hospital_name"];
    [aCoder encodeObject:_doctor_name forKey:@"flower"];
    [aCoder encodeObject:_doctor_name forKey:@"operation_count"];
    [aCoder encodeObject:_doctor_name forKey:@"banner"];
    [aCoder encodeObject:_doctor_name forKey:@"accuracy"];
    [aCoder encodeBool:_selected forKey:@"selected"];

}

-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if (self=[super init]) {

        self.doctor_name = [aDecoder decodeObjectForKey:@"doctor_name"];
        self.doctor_portrait = [aDecoder decodeObjectForKey:@"doctor_portrait"];
        self.doctor_title_name = [aDecoder decodeObjectForKey:@"doctor_title_name"];
        self.doctor_hospital_name=[aDecoder decodeObjectForKey:@"doctor_hospital_name"];
        self.flower = [aDecoder decodeObjectForKey:@"flower"];
        self.operation_count = [aDecoder decodeObjectForKey:@"operation_count"];
        self.banner = [aDecoder decodeObjectForKey:@"banner"];
        self.accuracy = [aDecoder decodeObjectForKey:@"accuracy"];
        self.selected=[aDecoder decodeBoolForKey:@"selected"];
        
    }
    return self;
}


@end
